#pragma once
#include "CharItems.h"


class DataParser
{
public:
	DataParser(void);
	~DataParser(void);

	bool Init(const std::wstring& filepath, CharItems& charitems);
	bool Init(char* pData, int size, CharItems& charitems);
	std::pair<wchar_t, CharItem> GetChatItem(const std::wstring& parseString);
	int HexStr2Int(const std::wstring& str);
	CharItem Pronounce2CharItem(const std::wstring& str);
};
